import request from '@/config/axios'

// 查询生产部大屏部件详情数据
export const getScreenProductionPartDetail = async (id: number) => {
  return await request.get({ url: `/screen/production/partDetail?id=${id}` })
}

// 查询生产部大屏部件列表数据
export const getScreenProductionPartList = async (params?) => {
  return await request.get({ url: `/screen/production/partList`, params })
}

// 查询产品信息数据及任务状态看板
export const getScreenProductionList = async () => {
  return await request.get({ url: `/screen/production/list` })
}

// 查询七日完工率
export const getScreenCompleteRate = async () => {
  return await request.get({ url: `/screen/production/completeRate` })
}

// 查询班组任务看板
export const getScreenTeamTask = async () => {
  return await request.get({ url: `/screen/production/teamTaskData` })
}